package com.github.common.extend.demo.config.desensitization.meta;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.function.Function;

/**
 * 脱敏属性
 * @author wangjj7
 * @date 2022/8/1
 * @description
 */
@Accessors(chain = true)
@Data
public class PropertyMeta {

    /**
     * 脱敏属性对外编号，同一个菜单下不能重复
     * @return
     */
    private String code;

    /**
     * 描述
     * @return
     */
    private String description;

    /**
     * 脱敏逻辑
     */
    @JsonIgnore
    private Function<String ,String> function = Function.identity();

}
